﻿using System;
using System.Collections.Generic;
using System.Domain.Entity;
using System.Domain.IRepository;
using System.Text;
using Application.Infrastructure;
using Domain.Infrastructure;

namespace System.Application
{
    /// <summary>
    ///程序日志服务 
    /// </summary>	
    public class SysProgramLogService : BaseService<SysProgramLogEntity>
    {
        private readonly ISysProgramLogRepository _repository;
        public SysProgramLogService(ILog log, ISysProgramLogRepository repository) : this(log, repository, "")
        {
        }
        public SysProgramLogService(ILog log, ISysProgramLogRepository repository, string userId) : base(log, repository, userId)
        {
            _repository = repository;
        }
        public List<SysProgramLogEntity> GetList(Pagination pagination, DateTime start, DateTime end)
        {
            try
            {
                return _repository.GetList(pagination, start, end);
            }
            catch (Exception ex)
            {
                Log.Error(ex);
                throw;
            }
        }


    }
}
